package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
public class TicketPayOrderForm {
    public static final int STATE_CHILD =1; //儿童票
    public static final int STATE_ADULT =2; //成人票

    private Long id;

    private User user;  //用户

    private LandmarkDetai landmarkDetai;  //门票细节

    private Integer state;


    public String getStateDispaly(){
        if(state==null){
            return "";
        }
        if(state==STATE_CHILD){
            return "儿童票";
        }else if(state==STATE_ADULT){
            return "成人票";
        }
        return "";
    }
}